package net.atomtree.corrsepond;

import net.atomtree.corrsepond.factory.SparkRestFactory;
import net.atomtree.corrsepond.factory.SparkRestFactoryAdapter;

/**
 * Created by czk on 2016/1/4.
 */
public class CorrespondImpl {
    //得到url后进行rest，返回jsonArrString
    public String getRestResult(String restUrl) throws Exception {
        SparkRestFactory factory=new SparkRestFactoryAdapter();
        String restResult=factory.Correspond(restUrl);
        return restResult;
    }
}
